package com.health.healthSys.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.health.common.annotation.Excel;
import com.health.common.core.domain.BaseEntity;

/**
 * 健康数据对象 health_records
 *
 * @author maple
 * @date 2025-02-28
 */
public class HealthRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 健康数据ID */
    private String healthId;

    /** 关联用户ID */
    private Long userId;
    private Long deptId;
    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickname;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 身高(cm) */
    @Excel(name = "身高(cm)")
    private BigDecimal height;

    /** 体重(kg) */
    @Excel(name = "体重(kg)")
    private BigDecimal weight;

    /** 高压(mmHg) */
    @Excel(name = "高压(mmHg)")
    private String systolic;

    /** 低压(mmHg) */
    @Excel(name = "低压(mmHg)")
    private String diastolic;

    /** 心率(bpm) */
    @Excel(name = "心率(bpm)")
    private String heartRate;

    /** 血糖(mmol/L) */
    @Excel(name = "血糖(mmol/L)")
    private BigDecimal bloodSugar;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    private String beginDate;
    private String endDate;

    // 添加Getter和Setter
    public String getBeginDate() { return beginDate; }
    public void setBeginDate(String beginDate) { this.beginDate = beginDate; }
    public String getEndDate() { return endDate; }
    public void setEndDate(String endDate) { this.endDate = endDate; }

    public void setHealthId(String healthId)
    {
        this.healthId = healthId;
    }

    public String getHealthId()
    {
        return healthId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getNickname()
    {
        return nickname;
    }
    public void setGender(String gender)
    {
        this.gender = gender;
    }

    public String getGender()
    {
        return gender;
    }
    public void setHeight(BigDecimal height)
    {
        this.height = height;
    }

    public BigDecimal getHeight()
    {
        return height;
    }
    public void setWeight(BigDecimal weight)
    {
        this.weight = weight;
    }

    public BigDecimal getWeight()
    {
        return weight;
    }
    public void setSystolic(String systolic)
    {
        this.systolic = systolic;
    }

    public String getSystolic()
    {
        return systolic;
    }
    public void setDiastolic(String diastolic)
    {
        this.diastolic = diastolic;
    }

    public String getDiastolic()
    {
        return diastolic;
    }
    public void setHeartRate(String heartRate)
    {
        this.heartRate = heartRate;
    }

    public String getHeartRate()
    {
        return heartRate;
    }
    public void setBloodSugar(BigDecimal bloodSugar)
    {
        this.bloodSugar = bloodSugar;
    }


    public BigDecimal getBloodSugar()
    {
        return bloodSugar;
    }
    public void setRecordTime(Date recordTime)
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime()
    {
        return recordTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("healthId", getHealthId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("nickname", getNickname())
            .append("gender", getGender())
            .append("height", getHeight())
            .append("weight", getWeight())
            .append("systolic", getSystolic())
            .append("diastolic", getDiastolic())
            .append("heartRate", getHeartRate())
            .append("bloodSugar", getBloodSugar())
            .append("recordTime", getRecordTime())
            .toString();
    }
}
